import request from '@/utils/request'

// 获取品牌管理的分页列表
export const getTrademarkListApi = (page, limit) => {
  return request.get(`/admin/product/baseTrademark/${page}/${limit}`)
}

// 添加品牌 data = {tmName,logoUrl}
export const addTrademark = (data) => {
  return request.post(`/admin/product/baseTrademark/save`, data)
}
// 编辑品牌 data = {tmName,logoUrl，id}
export const editTrademarkApi = (data) => {
  return request.put(`/admin/product/baseTrademark/update`, data)
}

// 删除品牌
export const delTrademarkApi = (id) => {
  return request.delete(`/admin/product/baseTrademark/remove/${id}`)
}
